<template>
	<view>
		<view class="line_height"></view>
		<view class="headerView">
			<view class="header_view_left">
				<view class="balance">1500</view>
				<view>当前现金余额（元）</view>
				<view class="Withdraw">提现</view>
			</view>
			<view class="header_view_right">
				<view>累计收入（元）：1700元</view>
				<view>累计提现（元）：200元</view>
			</view>
		</view>
		<view class="bodyView">
			<view class="titleView">收支明细</view>
			<view class="list" v-for="(item,index) in dataList" :key="index">
				<view class="lestLeft">
					<view class="name">{{item.name}}</view>
					<view class="time">{{item.classity}}时间：{{item.time}}</view>
				</view>
				<view class="price">+ {{item.price}}</view>
			</view>
		</view>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: [],
			}
		},
		onLoad() {
			this.getDataList()
		},
		methods: {
			getDataList() {
				this.dataList = [{
					"id": 1234567,
					"name": "车辆保养",
					"classity": "核销",
					"time": "2025-01-05 10:29",
					"price": 135.34,
				}, {
					"id": 1234567,
					"name": "提现",
					"classity": "提现",
					"time": "2025-01-05 10:29",
					"price": 135.34,
				}, {
					"id": 1234567,
					"name": "提现",
					"classity": "提现",
					"time": "2025-01-05 10:29",
					"price": 135.34,
				}, {
					"id": 1234567,
					"name": "车辆清洗、抛光打蜡服务",
					"classity": "核销",
					"time": "2025-01-05 10:29",
					"price": 135.34,
				}, {
					"id": 1234567,
					"name": "车辆保养",
					"classity": "核销",
					"time": "2025-01-05 10:29",
					"price": 135.34,
				}, {
					"id": 1234567,
					"name": "车辆清洗、抛光打蜡服务",
					"classity": "核销",
					"time": "2025-01-05 10:29",
					"price": 135.34,
				}]
			}
		}
	}
</script>

<style>
	/* 顶部收支总计开始 */
	.line_height {
		height: 150rpx;
		border-left: #d4e4ff solid 1px;
		position: fixed;
		left: 375rpx;
		top: 50rpx;
		opacity: 0.5;
	}

	.headerView {
		margin-top: 40rpx;
		color: rgba(255,255,255,0.7);
		font-size: 26rpx;
		display: flex;
		justify-content: space-around;
		align-items: center;
		text-align: center;
		margin-bottom: 40rpx;
	}

	.header_view_left {
		margin-left: 60rpx;
	}

	.header_view_left>view:nth-child(2) {
		padding: 10rpx 0 30rpx;
	}

	.balance {
		padding-right: 10rpx;
		font-size: 42rpx;
		margin: 0 auto;
	}

	.Withdraw {
		margin: 0 auto;
		background-color: #FF6532;
		width: 200rpx;
		border-radius: 26rpx;
		line-height: 48rpx;
	}

	.header_view_right {
		text-align: left;
		padding-left: 50rpx;
	}

	.header_view_right>view {
		padding-bottom: 20rpx;
	}

	/* 顶部收支总计结束 */
	/* 收支明细列表开始 */
	.bodyView {
		margin: 0 auto;
		background-color: #fff;
		margin: 20rpx;
		border-radius: 20rpx;
		padding: 25rpx;
	}

	.titleView {
		font-size: 34rpx;
		font-weight: bold;
		padding-bottom: 20rpx;
		border-bottom: #f0f0f0 5rpx solid;
	}

	.list {
		padding: 20rpx 0;
		margin: 0 auto;
		border-top: #f0f0f0 5rpx solid;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}
	.name{
		padding-bottom: 20rpx;
		font-size: 26rpx;
		font-weight: bold;
	}
	.time{
		font-size: 24rpx;
		color: #b9b9b9;
	}
	.price{
		color: #FF6532;
		font-size: 28rpx
	}
	/* 收支明细列表结束 */
</style>